---
layout: "default"
title: "Character.UnicodeScalarView.Index"
description: "Swift documentation for 'Character.UnicodeScalarView.Index': A type that represents a position in the collection."
keywords: "Character.UnicodeScalarView.Index,struct,swift,documentation"
root: "/v4.2"
---

<div class="intro-declaration"><code class="language-swift">struct Character.UnicodeScalarView.Index</code></div>

<div class="discussion comment">
    <p>A type that represents a position in the collection.</p>

<p>Valid indices consist of the position of every element and a
&quot;past the end&quot; position that&#39;s not valid for use as a subscript
argument.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<code class="inherits">Comparable, Equatable</code>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>









